package com.zsx.shopping.seckill.service;

import com.zsx.shopping.seckill.vo.app.SeckillGoodsVO;
import com.zsx.shopping.seckill.vo.app.CurSeckillSkuVO;

import java.util.List;

public interface SeckillService {

    void uploadSeckillSkuLatest3Days();

    List<CurSeckillSkuVO> getCurSeckillSkus();

    SeckillGoodsVO getSeckillGoods(Long skuId);

    String kill(Long sessionId, Long skuId, Integer num, String code);

    void changeSeckillStatus(Long userId, Long sessionId, Long skuId, Byte status);

    Byte askSeckillStatus(Long sessionId, Long skuId);

    void restoreStock(String randomCode, Integer num);
}
